package XML与JSON.使用SAX;

import java.util.List;

import com.fasterxml.jackson.dataformat.xml.XmlMapper;

//解析users.xml文件，将其转换成List<User> users实例对象
public class JavaReadXmlSaxEx  {

    public static void main(String[] args) {
   	 XmlMapper xmlMapper = new XmlMapper();
        MyRunner runner = new MyRunner();
        List<User> lines = runner.parseUsers();

        lines.forEach(System.out::println);
    }
}

